package com.tsc.order.client;

import com.tsc.common.response.ApiResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: chentl
 * @Date: 2025/08/29/22:07
 * @Description:
 */
@Component
@FeignClient(name = "stock-server")
public interface StockClient {

    @GetMapping("/stock/reduct")
    public ApiResponse reduct(@RequestParam(value="productId") Integer productId );
}
